package com.cqjtu.platform.utils.tools;

import lombok.extern.slf4j.Slf4j;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * @author pengyangyan
 */
@Slf4j
public class QiniuApi {

    private static final Object LOCK = new Object();

    public synchronized static String writeName(){
        Date date = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        Random random = new Random();
        int nextInt = random.nextInt(10);
        return dateFormat.format(date)+nextInt;

    }



}
